package com.pig.common;

import com.pig.common._enum.ProtocolEnum;

import java.util.HashMap;
import java.util.Map;

/**
 * @author by 李志伟
 * Create Date: 2019/1/7 14:57
 * Description:
 */
public class RpcContext {
    private static Map<String, ProtocolEnum> protocolEnumMap = new HashMap<>();

    public static void put(String className, ProtocolEnum protocolEnum) {
        protocolEnumMap.put(className, protocolEnum);
    }

    public static ProtocolEnum get(String className) {
        return protocolEnumMap.get(className);
    }
}
